//
//  ACZoneHeaderTableViewCell.m
//  家校互通
//
//  Created by 李赛 on 15/7/8.
//  Copyright (c) 2015年 姬鑫宇. All rights reserved.
//

#import "ACZoneHeaderTableViewCell.h"

@implementation ACZoneHeaderTableViewCell

- (void)awakeFromNib {
    _iconImage.layer.masksToBounds=YES;
    _iconImage.layer.cornerRadius=6;
    _btnForSignUp.layer.masksToBounds=YES;
    _btnForSignUp.layer.cornerRadius=8;
    // Initialization code
}
-(void)setBlackBoardModel:(BlackBoardModel *)blackBoardModel
{

    [_iconImage sd_setImageWithURL:[NSURL URLWithStringForBigImage:blackBoardModel.icon] placeholderImage:[UIImage imageNamed:@"icon01"]];
    _titleNameLB.text=blackBoardModel.nickname;
    _titleTimeLB.text=blackBoardModel.create_time;
    NSString *btnString=@"去报名";
    if (blackBoardModel.registration_mode==1)
    {
        _btnForSignUp.hidden=YES;
    }
    else if(blackBoardModel.registration_mode==2)
    {
         _btnForSignUp.hidden=NO;
        
         [_btnForSignUp setTitle:btnString forState:UIControlStateNormal];
    }
   
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
